Skip to main content
Version: Next

Project Manager Setup for VS Code

With the Project Manager extension, you can easily manage and switch between multiple micro-services. This setup will allow you to maintain a more organized development environment while working on multiple micro-services.

Micro-Services List​

We will configure the following micro-services in the Project Manager:

  • activity-log
  • anomaly
  • auth-bo
  • auth-rs
  • buildingwork
  • calendar
  • commission
  • company
  • dashboard
  • distributor
  • document
  • equipment
  • error
  • establishment
  • init
  • intervention
  • notification
  • organization
  • profile-bo
  • profile-rs
  • report
  • reseller
  • site
  • technical-installation
  • web-socket

Step 1: Installing the Project Manager Extension​

  1. Open Visual Studio Code.
  2. Go to the Extensions view by clicking on the Extensions icon in the Activity Bar on the side of the window or press Ctrl+Shift+X.
  3. In the search bar, type Project Manager.
  4. Select the extension named Project Manager by alefragnani.
  5. Click on the Install button to add it to VS Code.

Step 2: Configuring Project Manager​

Once the extension is installed, follow these steps to configure your micro-services.

Adding Micro-Services to Project Manager​

  1. Navigate to the folder where your micro-service is located (e.g., activity-log).
  2. Open the Command Palette by pressing Ctrl+Shift+P.
  3. Type Project Manager: Save Project and select it.
  4. You will be prompted to give the project a name. Enter the name of the micro-service (e.g., activity-log).
  5. Repeat the steps above for each micro-service listed.

Using JSON Configuration (Alternative Method)​

If you prefer to manually add all micro-services in one go, you can directly edit the projects.json file:

  1. Press Ctrl+Shift+P to open the Command Palette.
  2. Type Project Manager: Edit Projects and select it.
  3. Scroll down to the Project Manager section or add it manually:
[
{
"name": "activity-log",
"rootPath": "/path/to/activity-log"
},
{
"name": "anomaly",
"rootPath": "/path/to/anomaly"
},
{
"name": "auth-bo",
"rootPath": "/path/to/auth-bo"
},
{
"name": "auth-rs",
"rootPath": "/path/to/auth-rs"
},
{
"name": "buildingwork",
"rootPath": "/path/to/buildingwork"
},
{
"name": "calendar",
"rootPath": "/path/to/calendar"
},
{
"name": "commission",
"rootPath": "/path/to/commission"
},
{
"name": "company",
"rootPath": "/path/to/company"
},
{
"name": "dashboard",
"rootPath": "/path/to/dashboard"
},
{
"name": "distributor",
"rootPath": "/path/to/distributor"
},
{
"name": "document",
"rootPath": "/path/to/document"
},
{
"name": "equipment",
"rootPath": "/path/to/equipment"
},
{
"name": "error",
"rootPath": "/path/to/error"
},
{
"name": "establishment",
"rootPath": "/path/to/establishment"
},
{
"name": "init",
"rootPath": "/path/to/init"
},
{
"name": "intervention",
"rootPath": "/path/to/intervention"
},
{
"name": "notification",
"rootPath": "/path/to/notification"
},
{
"name": "organization",
"rootPath": "/path/to/organization"
},
{
"name": "profile-bo",
"rootPath": "/path/to/profile-bo"
},
{
"name": "profile-rs",
"rootPath": "/path/to/profile-rs"
},
{
"name": "report",
"rootPath": "/path/to/report"
},
{
"name": "reseller",
"rootPath": "/path/to/reseller"
},
{
"name": "site",
"rootPath": "/path/to/site"
},
{
"name": "technical-installation",
"rootPath": "/path/to/technical-installation"
},
{
"name": "web-socket",
"rootPath": "/path/to/web-socket"
}
]
  1. Replace the /path/to/ with the actual path to your micro-services.
  2. Save the file.

Step 3: Switching Between Micro-Services​

  1. Open the Command Palette with Ctrl+Shift+P.
  2. Type Project Manager: List Projects and select it.
  3. You will see a list of all your configured micro-services.
  4. Select any micro-service to open it in the current or a new window.